package features;

import java.util.List;
import java.util.Optional;

public class OptionalFeature {

    public void OPtionalGetOrElse(List<String> strings) {
        Optional<List<String>> value = Optional.of(strings);
        value.ifPresentOrElse(System.out::println, () -> System.out.println("无数据"));
    }
}
